473,461 Members | 1,361 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Div Follows page vertical scrollBar

25
After a very very long search in the internet and in this forum I
give up and asking you (the experts) a question.

I have a little from and I want it to "follow" the vertical scrollbar of the page.

I will ask a simple qustion ==>
How ?

I have no idea how to do this.

hope to get some answers and
thank you.
Jan 31 '07 #1
5 10412
b1randon
171 Expert 100+
After a very very long search in the internet and in this forum I
give up and asking you (the experts) a question.

I have a little from and I want it to "follow" the vertical scrollbar of the page.

I will ask a simple qustion ==>
How ?

I have no idea how to do this.

hope to get some answers and
thank you.
Here is a script that has that functionality: http://www.dynamicdrive.com/dynamicindex17/floatbar.htm
Jan 31 '07 #2
obarash
25
Here is a script that has that functionality: http://www.dynamicdrive.com/dynamicindex17/floatbar.htm
thank you.

How did you find it?
Feb 1 '07 #3
obarash
25
The script in that website need a first X position and Yposition.

My problem is the X positoin,
because some of the people use 800X600 resolution and others use 1024X768.
Another problem is if the window is on fullscreen or not (because the site's align is to the center);

what can I do?
Feb 1 '07 #4
obarash
25
I solved the problem

I'm using a function to find the positoin of the form in page

Expand|Select|Wrap|Line Numbers
  1. function findPos(obj){
  2.     var curleft = curtop = 0;
  3.     if (obj.offsetParent){
  4.         curleft = obj.offsetLeft;
  5.         curtop = obj.offsetTop;
  6.         while (obj = obj.offsetParent){
  7.             curleft += obj.offsetLeft;
  8.             curtop += obj.offsetTop;
  9.         }
  10.     }
  11.     return [curleft,curtop];
  12. }
Feb 1 '07 #5
acoder
16,027 Expert Mod 8TB
Glad you got your problem solved.

You asked how he found it. Probably by Googling, just put in the correct keywords and you should usually find what you want unless it's a very complex problem that no-one's attempted before.
Feb 1 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: MarBo | last post by:
Hi My index page has got scrollbars turned on even when there is not enough there to scroll. How do I remove this? www.marbo.co.uk
4
by: Rob T. | last post by:
I am using a div tag to make an element that contains some text. I have specified overflow: auto; in my stylesheet. If I use font-size/line-height to specify the font information I get a vertical...
3
by: buht | last post by:
Hello Everyone, Fairly new to c# here and have a question regarding scrollbars, particularly a vertical scrollbar. It looks like my options are restricted for the textbox scrollbars being...
0
by: Gene Hubert | last post by:
I've got two treeviews side by side on a panel on a form. They each have about 20 nodes in them. The treeview on the right has a vertical scrollbar. The treeview on the left needs a vertical...
4
by: ShaneO | last post by:
In a Windows Form I have a RichTextBox with Multiline = True and ScrollBars = Vertical. As expected, when Text is loaded into the RTB the Vertical ScrollBar will appear if needed. Does anyone...
0
by: jazeelkm | last post by:
hi, i am a beginer in the world of C# 1. I want to hide the vertical scrollbar of a listbox . In properties i can hide the horizontal scrollbar , but there s no option for vertical scroll...
1
by: platoon1sc | last post by:
Hi guys.I have a problem with Internet Explorer in my web-application. I have a vertical scrollbar into my jsps but firefox show the vertical srollbar, but IE doesn't. IE show a blank space where...
1
by: Tom | last post by:
First, I posted a similar request for help in another group and now don't find the posting. Problem with my newsreader perhaps ... but apologies if this appears as a cross posting. My code is...
27
by: Steve | last post by:
My apologies if this is a duplicate post, I can't find the earlier version of my question. I have a DIV that uses a CSS class defined at the thtop of an HTML page. The height and width of the...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.